

            function addArduinoCod (Blockly) {
            
                        

                        
        Blockly.Arduino['EXT_DHT11_SENSOR_BLOCK_1608002817284'] = function(block)
        {
            let pin = this.getFieldValue('pin');
let th = this.getFieldValue('th');
          
            Blockly.Arduino.definitions_['include_EXT_DHT11_SENSOR_BLOCK_1608002817284'] = `\n#include "dht11.h"`;
            Blockly.Arduino.definitions_['define_EXT_DHT11_SENSOR_BLOCK_1608002817284'] = `#define DHT11Pin${pin} ${pin}\r\n\r\ndht11 dht11;\r\nfloat dht_value;\r\nfloat Dht_Read () {\r\n dht11.read(DHT11Pin${pin});\r\n dht_value=(float)dht11.${th};\r\n return dht_value;\r\n}`;
            Blockly.Arduino.definitions_['setup_EXT_DHT11_SENSOR_BLOCK_1608002817284'] = ``;
             return  [`Dht_Read ()`];
        }
                    
            return Blockly;
            }

            module.exports = addArduinoCod ;

        